package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NonNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 飞机信息对象 tb_airplane
 *
 * @author ruoyi
 * @date 2025-07-23
 */
@Data
@Schema(description = "飞机信息对象")
public class TbAirplane extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @Schema(description = "自增主键")
    private Long id;

    /**
     * 业务主键
     */
    @Excel(name = "业务主键")
    @Schema(description = "业务主键")
    private Long planeId;


    /** 所属航司 */
    @Excel(name = "所属航司")
    private Long airlineId;

    /**
     * 飞机编号
     */
     @NotNull(message = "飞机编号不能为空")
    @Excel(name = "飞机编号")
    private String planeCode;

    /**
     * 飞机名称
     */
    @Excel(name = "飞机名称")
    @Schema(description = "飞机名称")
    private String planeName;

    /**
     * 状态(1=启用 0=禁用)
     */
    @Excel(name = "状态(1=启用 0=禁用)")

    @Schema(description = "状态(1=启用 0=禁用)")
    private Integer status;


    /** 登记时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "登记时间", example = "2023-08-15 14:30:45")
    private Date registrationTime;


    /** 设备数量 */
    @Excel(name = "设备数量")
    @Schema(description = "设备数量")
    private  Integer deviceCount;


}
